<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试get请求</title>
    <script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
</head>
<body>
<input placeholder="请输入要搜索的id" type="text" id="demo1" name="id">
<input type="button" value="搜索" onclick="ceshi()">
<script>
        function ceshi() {
        var aa=$('#demo1').val();
        console.log("参数是"+aa)
        $.ajax({
            url:"/qqq",
            data:{id:aa},
            type: "get",
            dataType: "text",
            success:function (data) {
                $("#demo1").html(data);
                console.log(data)
            }
        })
    }
</script>
</body>
</html>
